package com.powernode.business.mapper;

import com.powernode.business.domain.Car;
import com.powernode.common.core.domain.model.LoginUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CarMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Car record);

    int insertSelective(Car record);

    Car selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Car record);

    int updateByPrimaryKey(Car record);

    List<Car> selectCarList(@Param("car") Car car, @Param("loginUser") LoginUser loginUser);

    int deleteCar(@Param("ids") List<Integer> ids, @Param("username") String username);

    Car selectCarByCarNum(@Param("carNumber") String carNumber);

    List<Car> selectCarById(@Param("ids") List<Integer> ids);

    int delCarBatch(@Param("ids") List<Integer> ids, @Param("username") String username);
}